//
//  YWNoContentView.m
//  Chinese
//
//  Created by yellow on 2019/7/10.
//  Copyright © 2019 YSLC. All rights reserved.
//

#import "YWNoContentView.h"

@interface YWNoContentView ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *textLabel;

- (IBAction)imgBtnClick:(UIButton *)sender;


@end

@implementation YWNoContentView


+(instancetype)footerView{
    
    return [[NSBundle mainBundle] loadNibNamed:@"YWNoContentView" owner:nil options:nil].lastObject;
    
}

-(void)setImage:(UIImage *)image{
    
    _image = image;
    self.imageView.image = image;
    
}

-(void)setTitle:(NSString *)title{
    
    _title = [title copy];
    
    self.titleLabel.text = title;
}

-(void)setDetailText:(NSString *)detailText{
    
    _detailText = [detailText copy];
    
    self.textLabel.text = detailText;
    
}


- (IBAction)imgBtnClick:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(noContentViewDidClickImbgBtn:)]) {
        [self.delegate noContentViewDidClickImbgBtn:self];
    }
    
    
}


@end
